Skip to content

Conversation

@stevenh
Copy link

@stevenh stevenh commented Apr 22, 2023

Use the standard library embed for internal files instead of esc and go-bindata which significantly simplifies the code and removes the need for 3rd party dependencies.

Also:

  • Update go workflow with latest actions so we get caching.

Use the standard library embed for internal files instead of esc and
go-bindata which significantly simplifies the code and removes the need
for 3rd party dependencies.

Also:
* Update go workflow with latest actions so we get caching.
cweill added a commit that referenced this pull request Oct 21, 2025
This commit integrates improvements from several pending PRs and addresses
key user feedback:

## Template Improvements (PR #184)
- Use t.Fatalf() instead of t.Errorf() + return in subtests
- Improves test ergonomics and reduces boilerplate
- Updated golden test files to reflect new behavior

## Documentation Updates (PR #185, #180)
- Document the -named flag for map-based table tests
- Update installation from go get to go install (go get deprecated)
- Update minimum Go version to 1.16

## Use stdlib embed (PR #181)
- Replace esc/go-bindata with Go 1.16+ embed package
- Removes 834+ lines of generated code and 3rd party dependencies
- Simplifies template loading and reduces maintenance burden
- Convert symlinks in testify templates to real files for embed compatibility

Breaking Changes:
- Minimum Go version bumped from 1.6 to 1.16 (for embed support)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
cweill added a commit that referenced this pull request Oct 21, 2025
This commit integrates improvements from several pending PRs and addresses
key user feedback:

## Template Improvements (PR #184)
- Use t.Fatalf() instead of t.Errorf() + return in subtests
- Improves test ergonomics and reduces boilerplate
- Updated golden test files to reflect new behavior

## Documentation Updates (PR #185, #180)
- Document the -named flag for map-based table tests
- Update installation from go get to go install (go get deprecated)
- Update minimum Go version to 1.16

## Use stdlib embed (PR #181)
- Replace esc/go-bindata with Go 1.16+ embed package
- Removes 834+ lines of generated code and 3rd party dependencies
- Simplifies template loading and reduces maintenance burden
- Convert symlinks in testify templates to real files for embed compatibility

Breaking Changes:
- Minimum Go version bumped from 1.6 to 1.16 (for embed support)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@cweill
Copy link
Owner

cweill commented Oct 21, 2025

Thank you so much for this excellent PR! 🎉

This major improvement has been integrated into v1.7.0. By replacing bindata with the stdlib embed package, we:

  • Removed 834+ lines of generated code
  • Eliminated third-party dependencies (go-bindata, esc)
  • Simplified the build process (no more go generate needed)
  • Improved maintainability

This was one of the most impactful changes in v1.7.0. Your contribution is a key part of the modernization effort that brought gotests back to life after 5 years. Really appreciate your patience and the high quality of this PR!

Check out the release: https://github.com/cweill/gotests/releases/tag/v1.7.0

@cweill cweill closed this Oct 21, 2025
@stevenh stevenh deleted the feat/use-embed branch October 21, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants